/*    */ package server;
/*    */ 
/*    */ import client.MapleBuffStat;
/*    */ import client.MapleCharacter;
/*    */ import client.skills.SkillFactory;
/*    */ import java.util.List;
/*    */ import tools.Pair;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MapleSkillEffectApp
/*    */ {
/*    */   public static void applyBuffEffect(MapleStatEffect effect, MapleCharacter applyfrom, MapleCharacter applyto, boolean primary, effectEventData effectEventData1) {
/* 26 */     applyBuffEffect(effect, applyfrom, applyto, primary, effect.getSourceid(), effectEventData1);
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public static void applyBuffEffect(MapleStatEffect effect, MapleCharacter applyfrom, MapleCharacter applyto, boolean primary, int sourceid, effectEventData effectEventData1) {
/* 38 */     int skilllevel = applyto.getSkillLevel(sourceid);
/* 39 */     if (skilllevel > 0) {
/* 40 */       effectEventData1.duration = SkillFactory.getSkill(sourceid).getEffect(skilllevel).getDuration();
/*    */     }
/*    */   }
/*    */   
/*    */   public static class effectEventData
/*    */   {
/*    */     protected final List<Pair<MapleBuffStat, Integer>> statups;
/*    */     protected int duration;
/*    */     
/*    */     public effectEventData(List<Pair<MapleBuffStat, Integer>> statups) {
/* 50 */       this.statups = statups;
/*    */     }
/*    */     
/*    */     public effectEventData(List<Pair<MapleBuffStat, Integer>> statups, int duration) {
/* 54 */       this.statups = statups;
/* 55 */       this.duration = duration;
/*    */     }
/*    */     
/*    */     public List<Pair<MapleBuffStat, Integer>> getStatups() {
/* 59 */       return this.statups;
/*    */     }
/*    */     
/*    */     public int getDuration() {
/* 63 */       return this.duration;
/*    */     }
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\MapleSkillEffectApp.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */